#!/bin/bash

cd /tmp

rm -rf setuptools*
cp ~/pybots/setuptools-0.6c2.zip .
unzip setuptools-0.6c2.zip
cd setuptools-0.6c2
/tmp/python-buildbot/local/bin/python setup.py install
cd ..

rm -rf elementtree*
cp ~/pybots/elementtree-1.2.6-20050316.tar.gz .
tar xzf elementtree-1.2.6-20050316.tar.gz
cd elementtree-1.2.6-20050316
/tmp/python-buildbot/local/bin/python setup.py install
cd ..

rm -rf swig*
cp ~/pybots/swig-1.3.29.tar.gz .
tar xzf swig-1.3.29.tar.gz
cd swig-1.3.29
./configure --prefix=/tmp/python-buildbot/local --with-python=/tmp/python-buildbot/local/bin/python
make
make install
cd ..

rm -rf M2Crypto*
cp ~/pybots/M2Crypto-458.tar.gz .
tar xzf M2Crypto-458.tar.gz
cd M2Crypto-458
/tmp/python-buildbot/local/bin/python setup.py --openssl=/usr/local build_ext --swig=/tmp/python-buildbot/local/bin/swig install
cd ..

rm -rf zope.interface*
cp ~/pybots/zope.interface-3.3-dev.tar.gz .
tar xzf zope.interface-3.3-dev.tar.gz
cd zope.interface-3.3-dev
/tmp/python-buildbot/local/bin/python setup.py install
cd ..

rm -rf Twisted*
cp ~/pybots/Twisted-2.4.0.tar.bz2 .
tar xjf Twisted-2.4.0.tar.bz2
cd Twisted-2.4.0
/tmp/python-buildbot/local/bin/python setup.py install
cd ..

